import request from '@/utils/request';
// list
export const churudengjiList = (params) => {
    return request({
        url: '/churudengji/page',
        method: 'post',
        data: params,
    })
};
export const churudengjiDetail = (id) => {
    return request({
        url: '/churudengji/'+id,
        method: 'get',
    })
};
// add
export const churudengjiSave = (params) => {
    return request({
        url: '/churudengji',
        method: 'post',
        data: params,
    })
};
// updt
export const churudengjiEdit = (params) => {
    return request({
        url: '/churudengji',
        method: 'put',
        data: params,
    })
};
// delete
export const churudengjiDelete = (id) => {
    return request({
        url: '/churudengji/'+id,
        method: 'delete',
    })
};
// pldel
export const churudengjiDeleteList = (churudengjis) => {
    return request({
        url: '/churudengji/deleteList',
        data:{list:churudengjis},
        method: 'post',
    })
};
// all
export const churudengjiAllList = () => {
    return request({
        url: '/churudengji',
        method: 'get',
    })
};

